package com.fht.service.set.impl;

import com.fht.entity.SetPay;
import com.fht.mapper.set.SetPayMapper;
import com.fht.service.set.SetPayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Slf4j
public class SetPayServiceImpl implements SetPayService {

    @Resource
    public SetPayMapper setPayMapper;

    @Override
    public SetPay selectById(int i) {
        return setPayMapper.selectByPrimaryKey(i);
    }

    @Override
    @Transactional
    public void update(SetPay setPay) {
        setPayMapper.updateByPrimaryKeySelective(setPay);
    }
}
